﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="Main_HeaderContentPlaceHolder">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="Main_MainContentPlaceHolder">  
  <asp:Login ID="Login1" runat="server" FailureText="نام کاربری یا کلمه عبور اشتباه است">
                <LayoutTemplate>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="right" style="width:100px" dir="rtl" valign="middle">
                                <asp:Label ID="UserNameLabel" runat="server" SkinID="Lable150" AssociatedControlID="UserName">نام کاربری:</asp:Label>
                            </td>
                            <td align="left" valign="middle">
                                <asp:TextBox ID="UserName" runat="server" Width="120px" Font-Names="Tahoma"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ToolTip="نام کاربری اجباری است" ValidationGroup="UserLogin">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width:100px" dir="rtl" valign="middle">
                                <asp:Label ID="PasswordLabel" runat="server" SkinID="Lable150" AssociatedControlID="Password">کلمه عبور:</asp:Label>
                            </td>
                            <td align="left" valign="middle">
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="120px" Font-Names="Tahoma"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    ToolTip="کلمه عبور اجباری است" ValidationGroup="UserLogin">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:CheckBox ID="RememberMe" runat="server" Font-Names="Tahoma" Text="ذخیره سازی مشخصات" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color: red; height: 14px;">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" valign="middle">
                                <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" SkinID="LoginButton"
                                    ValidationGroup="UserLogin" />&nbsp;
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:Login>
</asp:Content>
